<%--
  Created by IntelliJ IDEA.
  User: admin
  Date: 2020/7/23
  Time: 10:34
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>发展对象查看页面</title>
    <meta charset="UTF-8">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8 ? MYOA_CHARSET : htmlspecialchars($HTML_PAGE_CHARSET))?>" />
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
    <link rel="stylesheet" href="/lib/layui/layui/css/layui.css?20190817.1">
    <link rel="stylesheet" href="/lib/layui/layui/css/common.css">
    <link rel="stylesheet" href="/lib/layui/layui/css/eleTree.css">
    <script type="text/javascript" src="/js/jquery/jquery-1.9.1.js"></script>
    <script src="/lib/layui/layui/layui.js"></script>
    <script src="/lib/jquery.form.min.js"></script>
    <script src="/lib/layui/layui/js/baseCode/base.js?v=2019080918:09" type="text/javascript" charset="utf-8"></script>
    <script type="text/javascript" src="/lib/layui/layui/global.js"></script>
    <script src="/js/base/base.js" type="text/javascript" charset="utf-8"></script>
    <style>
        /*table{*/
        /*    width: 65%;*/
        /*    margin: 0 auto;*/
        /*    margin-bottom: 20px;*/
        /*}*/
        td{
            /*border: 1px solid #999;*/
            padding: 6px 0;
            /*text-align: center;*/
            height: 40px;
        }
        .fromTr>.fromTd1{
            width: 10%;
        }
        .fromTr>.fromTd2{
            width: 20%;
        }
        .fromTd2{
            padding: 0;
        }
        .fromTrinp{
            width: 94%;
            height: 77%;
            border: none;
            padding: 0 10px;
        }
        input,textarea{
            border: none;
            padding-left: 10px;
        }
        input[name="file"]{
            width: 30%;
        }
        .layui-input, .layui-select, .layui-textarea {
            height: 35px;
        }
        .font_style{
            font-family: Microsoft yahei,Helvetica Neue,Helvetica,PingFang SC,Tahoma,Arial,sans-serif;
        }
        table{
            border-collapse:separate!important;
        }
        .layui-form-radio {
            line-height: 20px;
            padding-right: 10px;
            cursor: pointer;
            font-size: 0;
        }
        .layui-btn {
            height: 35px;
            /*background-color: #3691DA;*/
        }
        .layui-disabled, .layui-disabled:hover {
            color: #708090!important;
        }
        .timeMore {
            width: 20%;
        }
        .memRecom{
            width: 80px;
            border-radius:5px;
            background-color: #009688;
            height: 30px;
        }
    </style>
</head>
<body class="bodycolor font_style">
<table border="0" width="90%" cellspacing="0" cellpadding="3" class="small">
    <tr>
        <td class="Big" style="padding: 19px 0;"><img align="absMiddle" src="/img/commonTheme/${sessionScope.InterfaceModel}/infofind11.png" style="margin-left: 35px;margin-bottom: 2px;"><span class="big3" style="font-family: 微软雅黑;font-size: 22px;margin-left: 10px;">发展对象信息</span></td>
    </tr>
</table>
<div class="content">
    <form class="layui-form" action="" lay-filter="example">
        <table class="layui-table"  style="margin: 0 auto;margin-top: 20px;width: 82%;">
            <tbody>
            <tr class="fromTr" style="height: 50px;">
                <td colspan="4" style="font-size: 18px; background-color: #009688; text-align: center; color: white">入党积极分子信息</td>
            </tr>
            <tr class="fromTr">
                <td class="fromTd1">入党申请人</td>
                <td class="fromTd2"><input class="fromTrinp layui-disabled"  readonly name="username" type="text"></td>
                <td class="fromTd1">入党申请时间</td>
                <td class="fromTd2 ">
                    <input class="fromTrinp layui-disabled"  readonly name="applyTime" type="text">
                </td>
            </tr>
            <tr class="fromTr">
                <td class="fromTd1">单位（部门）</td>
                <td class="fromTd2"><input class="fromTrinp layui-disabled" name="unit" type="text"></td>
                <td class="fromTd1">所属党支部</td>
                <td class="fromTd2"><input class="fromTrinp layui-disabled" name="pertain" type="text"></td>
            </tr>
            <tr class="fromTr">
                <td class="fromTd1">党员推荐票</td>
                <td colspan="3" style="text-align: left;  padding-left: 20px;">
                        <span >附件：
<%--                          <input type="file" name="file" id="test20">--%>
<%--                            <button type="button" class="layui-btn" id="test20"><i class="layui-icon"></i>上传文件</button>--%>
<%--                            <span class="unchoose">未选择任何文件</span>--%>
                            <input class="memRecom layui-disabled"  readonly name="memRecom" type="text">
                        </span>
                </td>
            </tr>
            <tr class="fromTr">
                <td class="fromTd1">党员推荐汇总票</td>
                <td colspan="3" style="text-align: left;  padding-left: 20px;">
                        <span >附件：
<%--                          <input type="file" name="file" id="test20">--%>
                            <input class="memRecom layui-disabled"  readonly name="recomSum" type="text">
                        </span>
                </td>
            </tr>
            <tr class="fromTr">
                <td class="fromTd1">群团（工会/团支部）推优表</td>
                <td colspan="3" style="text-align: left;  padding-left: 20px;">
                        <span >附件：
<%--                          <input type="file" name="file" id="test20">--%>
                           <input class="memRecom layui-disabled"  readonly name="recomGood" type="text">
                        </span>
                </td>
            </tr>
            <tr class="fromTr">
                <td class="fromTd1">支委会会议记录</td>
                <td colspan="3" style="text-align: left;  padding-left: 20px;">
                        <span >附件：
<%--                          <input type="file" name="file" id="test20">--%>
                            <input class="memRecom layui-disabled"  readonly name="meetWrite" type="text">
                        </span>
                </td>
            </tr>
            <tr class="fromTr">
                <td class="fromTd1">支委会会议决议</td>
                <td colspan="3" style="text-align: left;  padding-left: 20px;">
                        <span >附件：
<%--                          <input type="file" name="file" id="test20">--%>
                           <input class="memRecom layui-disabled"  readonly name="meetDecide" type="text">
                        </span>
                </td>
            </tr>
            <tr class="fromTr">
                <td class="fromTd1">入党积极分子备案报告</td>
                <td colspan="3" style="text-align: left;  padding-left: 20px;">
                        <span >附件：
<%--                          <input type="file" name="file" id="test20">--%>
                            <input class="memRecom layui-disabled"  readonly name="record" type="text">
                        </span>
                </td>
            </tr>
            <tr class="fromTr">
                <td class="fromTd1">入党积极分子备案表</td>
                <td colspan="3" style="text-align: left;  padding-left: 20px;">
                        <span >附件：
<%--                          <input type="file" name="file" id="test20">--%>
                           <input class="memRecom layui-disabled"  readonly name="recordTable" type="text">
                        </span>
                </td>
            </tr>
            <tr class="fromTr">
                <td class="fromTd1">培养联系人登记表</td>
                <td colspan="3" style="text-align: left;  padding-left: 20px;">
                        <span >附件：
<%--                          <input type="file" name="file" id="test20">--%>
                           <input class="memRecom layui-disabled"  readonly name="registTable" type="text">
                        </span>
                    <span style="margin-left: 60px">培养联系人姓名：<input class="timeMore layui-disabled"  readonly name="developName" type="text">
                    </span>
                </td>
            </tr>
            <tr class="fromTr">
                <td class="fromTd1">确定积极分子时间：</td>
                <td class="fromTd2"><input class="fromTrinp layui-disabled"  readonly name="sureTime" type="text"></td>
                <td class="fromTd1">支部书记签字：</td>
                <td class="fromTd2 ">
                    <input class="fromTrinp layui-disabled"  readonly name="clerk" type="text">
                </td>
            </tr>

            </tbody>
        </table>
    </form>
</div>
</body>
</html>
<script>
    function getQueryString(name){
        var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
        var r = window.location.search.substr(1).match(reg);
        if(r!=null)return  unescape(r[2]); return null;
    }
    var userId = getQueryString('userId');
    layui.use(['upload','form','table','laydate'], function() {
        var upload = layui.upload
            , form = layui.form
            , table = layui.table
            , laydate = layui.laydate;

        $.ajax({
            url:'/partyMember/partyInfo?',
            dataType:'json',
            type:'post',
            data:{
                userId:userId
            },
            success:function(res){
                var data = res.object;
                form.val('example', {
                    "username": data.userName
                    ,"applyTime": data.applyTime //发展阶段
                    ,"unit": data.deptName //单位（部门）
                    ,"pertain": data.parentPedtName //所属党支部
                });
            }
        })

    })


</script>



